package thread.demo17.test2;

import java.util.concurrent.Callable;

public class RealData implements Callable<String> {
	private String result;

	public RealData(String result) {
		this.result = result;
	}

	@Override
	public String call() throws Exception {
		StringBuffer sb = new StringBuffer();
		sb.append(result);
		// 模拟耗时的构造数据过程
		Thread.sleep(5000);
		return sb.toString();
	}
}
